|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A source for events. EventGenerator implements this interface, as do
objects opened by the openDataSet(String)
method in the DIM
(data interface module) interface.
EventGenerator
Method Summary | |
void |
afterLastEvent()
Called after the last event is accessed. |
void |
beforeFirstEvent()
Called before the first event is accessed. |
void |
close()
Provide some cleanup code if it is relevant to close the event source. |
java.lang.Class |
getEventDataClass()
Specify class of objects to be returned by getNextEvent |
java.lang.String |
getName()
Return a name for your event source. |
EventData |
getNextEvent()
Return the next event. |
int |
getTotalNumberOfEvents()
Return the number of events, or -1 if unknown. |
Method Detail |
public int getTotalNumberOfEvents()
public void beforeFirstEvent()
public void afterLastEvent()
public EventData getNextEvent() throws EndOfDataException
EndOfDataException
- when no more events are availablepublic java.lang.String getName()
public void close()
public java.lang.Class getEventDataClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |